from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response

from djongo.models import User


# Create your views here.

class Mongodb(APIView):
    def get(self, request, *args, **kwargs):
        person = User(name='John', password='ewtrewtewrtewre')
        person.save()
        return Response('成功')